package com.lovo.myutil;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lovo.dao.IUserDAO;
import com.lovo.model.DOS.UserDO;

import javax.annotation.Resource;

public class TestSQL12341 {
    @Resource
    private  IUserDAO dao ;
    public static void main(String[] args) {

//        SQLUtil.getResultMapXml(StudentDO.class, "stu");
//        SQLUtil.getFindByIdSQL(StudentDO.class);
//        SQLUtil.getLabelSQL(StudentDO.class);
//        SQLUtil.getAddSQL(StudentDO.class);
//        SQLUtil.getDelByIdSQL(StudentDO.class);
//        SQLUtil.getLabelSQL(StudentDO.class);
//        System.out.println(SQLUtil.getAllMapper(StudentDO.class, IStudentDAO.class,true));
        ;
//        System.out.println(System.getProperty("user.dir"));
        TestSQL12341 sql12341 = new TestSQL12341();
        IUserDAO dao = sql12341.dao;
        IPage<UserDO> page = new Page<>(1,2);
        IPage<UserDO> page1 = dao.selectPage(page, null);
        System.out.println(page1);
        System.out.println(page1.getTotal());
    }
}
